package com.ruoyi.system.mapper.app;

import com.ruoyi.system.domain.app.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Long id);

    Order selectByNo(String orderNo);

    List<Map> chargeCurve(@Param("month")String month,@Param("operatorId")Long operatorId,
                          @Param("communityId")Long communityId);

    List<Order> chargeList(Long userId);

    List<Order> chargeOrderList(@Param("order")Order order,@Param("startTime") String startTime ,@Param("endTime") String endTime);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    List<Order> chargeOrderCountList(@Param("order")Order order,@Param("startTime") String startTime ,@Param("endTime") String endTime);
}